<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>在线考试</title>
    <th:block th:include="fragment_header :: header">
    </th:block>
</head>
<body>
<div th:replace="fragment_menu :: navmenu"></div>
<div class="container mt-5">
    <div class="text-center">
        <h2 class="form-label">考试列表</h2>
    </div>

    <table class="table table-striped" style="background-color:#FFFFFF;">
        <thead class="table-secondary">
        <tr>
<!--            <th scope="col">#</th>&ndash;&gt;-->
            <th scope="col">#</th>
            <th scope="col">考试名称</th>
            <th scope="col">考试时间</th>
            <th scope="col">考试时长</th>
            <th scope="col">参加考试</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="exam, rowStat : ${examList2}">
            <th scope="row" th:text="${rowStat.index + 1}"></th>
            <td th:text="${exam.name}"></td>
            <td th:text="${exam.examAt}"></td>
            <td th:text="${exam.timeLimit}"></td>
            <td>
                <div class="col-16">
                    <a th:href="@{ /studentExam/waitingRoom (examId=${exam.id}) }" class="btn btn-primary"
                       name="examId">进入考试</a>
                </div>
            </td>
        </tr>
        </tbody>
    </table>
</div>
</body>
</html>
